package com.apimarket.dao;

import com.apimarket.entity.ApiSet;
import com.apimarket.entity.example.ApiSetExample;
import com.apimarket.entity.vo.ApiSetInterfaces;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ApiSetMapper {
    long countByExample(ApiSetExample example);

    int deleteByExample(ApiSetExample example);

    int deleteByPrimaryKey(String id);

    int insert(ApiSet record);

    int insertSelective(ApiSet record);

    List<ApiSet> selectByExampleWithBLOBs(ApiSetExample example);

    List<ApiSet> selectByExample(ApiSetExample example);

    ApiSet selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") ApiSet record, @Param("example") ApiSetExample example);

    int updateByExampleWithBLOBs(@Param("record") ApiSet record, @Param("example") ApiSetExample example);

    int updateByExample(@Param("record") ApiSet record, @Param("example") ApiSetExample example);

    int updateByPrimaryKeySelective(ApiSet record);

    int updateByPrimaryKeyWithBLOBs(ApiSet record);

    int updateByPrimaryKey(ApiSet record);

    List<ApiSet> findAll(Integer type, String name);

    ApiSet findOneDetailById(String id);

    void updateById(ApiSet apiSet);

    ApiSetInterfaces findSetDetailAndChildRoute(String id);
}